package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 費用調整子表
 * </p>
 *
 * @author system
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_adj_sub")
@ApiModel(value="DsgAccountAdjSub对象", description="費用調整子表")
public class DsgAccountAdjSub implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "外鍵")
    @TableField("PID")
    private String pid;

    @ApiModelProperty(value = "數據類型")
    @TableField("DATA_TYPE")
    private Integer dataType;

    @ApiModelProperty(value = "數據主鍵")
    @TableField("DATA_ID")
    private String dataId;

    @ApiModelProperty(value = "退款/調整金額")
    @TableField("ADJ_AMOUNT")
    private BigDecimal adjAmount;

    /**
     * 入油數據
     */
    public static final int DATA_TYPE_1 = 1;
    /**
     * 入賬數據（還沒有入總賬時才可調整）
     */
    public static final int DATA_TYPE_2 = 2;
}
